﻿<Window x:Class="Co9320.NamaAlert.Extension.View.OptionWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="OptionWindow">
    <DockPanel Margin="5">
        <Grid DockPanel.Dock="Bottom" HorizontalAlignment="Right">
            <StackPanel Orientation="Horizontal" Margin="0 5 0 0">
                <Button Content="OK" Width="100" IsDefault="True" Click="okButton_Click" />
                <Button Content="キャンセル" Width="100" Margin="5 0 0 0" IsCancel="True" Click="cancelButton_Click" />
            </StackPanel>
        </Grid>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="200"  />
                </Grid.ColumnDefinitions>
                <Label VerticalAlignment="Center" Content="ユーザー名:" Margin="10 0 0 0"/>
                <TextBox Grid.Column="1"  VerticalAlignment="Center" Text="{Binding UserName}" Name="UserName" />
                <Label Grid.Row="1" Content="パスワード:" VerticalAlignment="Center" Margin="10 0 0 0" />
                <PasswordBox Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" Name="Password" Height="{Binding ElementName=UserName, Path=ActualHeight}" PasswordChanged="SmtpPassword_PasswordChanged" />
            </Grid>
            <Button Grid.Row="1" HorizontalAlignment="Right" Padding="2" Margin="0 0 0 10" IsEnabled="True" Command="{Binding TestSendCommand}">
                <StackPanel Orientation="Horizontal" Margin="0">
                    <Image Width="16" Height="16" VerticalAlignment="Center" Margin="5 0 5 0" Source="/Plugin.Twitter;component/twitter_small.png" />
                    <TextBlock Text="テスト送信" VerticalAlignment="Center" Margin="0 0 5 0"  />
                </StackPanel>
            </Button>
        </Grid>
    </DockPanel>
</Window>
